<template>
  <div class="common-layout">
    <el-container class="lay-container">
      <CommonAside />
      <el-container class="r-container">
        <el-header>Header</el-header>
        <el-container>
          <el-container>
            <el-main>Main</el-main>
            <el-footer>Footer</el-footer>
          </el-container>
          <el-aside width="200px">Aside</el-aside>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import { defineComponent } from "vue";
import CommonAside from "../components/CommonAside.vue";
export default defineComponent({
  components: {
    CommonAside,
  },
})
</script>

<style lang="less" scope>
.el-container {
  height: 100%;
}

.common-layout {
  height: 100%;

  &>.el-container {
    height: 100%;

    &>.el-aside {
      height: 100%;
    }
  }

  .lay-container {
    flex-wrap: nowrap;

    .right-main {
      height: calc(100% - 124px) !important;
    }
  }
}
</style>